package com.example.demo.demos.webService;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 * @Author: lixz
 * @Date: 2024/10/28/19:34
 */
@WebService(serviceName = "testService"
        ,name = "testService",
targetNamespace = "http://ucp.xxx.com")
public class WeatherInterfaceImpl implements WeatherInterface{

    @WebMethod(operationName = "getWeatherImpl")
    @Override
    public String getWeather(@WebParam(name = "city") String city, @WebParam(name = "city2")  String city2) {
        return "调用成功";
    }

    @WebMethod(exclude = true)
    @Override
    public String msg(String city) {
        return "不允许调用";
    }
}
